package com.tools.repository;

import com.tools.model.entity.UserTasksEntity;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface UserTaskRepository extends JpaRepository<UserTasksEntity, Long>, JpaSpecificationExecutor<UserTasksEntity> {

    List<UserTasksEntity> findByUserId(String id);
    List<UserTasksEntity> findByTaskId(String taskid);
    UserTasksEntity findByTaskIdAndUserId(String taskId,String userId);
    UserTasksEntity findByUserTaskId (String UserTaskId);
}
